//
//  QXAccount.h
//  QXBlog
//
//  Created by QinXin on 15/7/5.
//  Copyright © 2015年 labi3285_Lab. All rights reserved.
//

#import <Foundation/Foundation.h>

@class QXUser;

@interface QXAccount : NSObject <NSCoding>

@property (nonatomic, copy) NSString *access_token;
@property (nonatomic, copy) NSString *expires_in;
@property (nonatomic, copy) NSString *remind_in;
@property (nonatomic, copy) NSString *uid;

@property (nonatomic, strong) QXUser *user;


+ (instancetype)sharedAccount;

- (void)achiveToSharedPath;
+ (instancetype)unAchivedSharedData;

- (instancetype)initWithDic: (NSDictionary *)dic;
+ (instancetype)accountWithDic: (NSDictionary *)dic;

@end
